/*    */ package system.staros.cblock2;
/*    */ 
/*    */ import java.io.PrintStream;
/*    */ import system.staros.cblock1.Message;
/*    */ import system.staros.cblock1.Task;
/*    */ 
/*    */ public class CoreTask extends Task
/*    */ {
/*    */   public CoreTask()
/*    */   {
/* 14 */     messages = new Message[256];
/* 15 */     for (int i = 0; i < 256; i++)
/* 16 */       messages[i] = null;
/* 17 */     message_lock = false;
/*    */   }
/*    */ 
/*    */   public void run()
/*    */   {
/* 22 */     int i = 1;
/* 23 */     System.out.print("Core task started. \tPID=");
/* 24 */     System.out.println(getPID());
/* 25 */     System.out.print("Waiting for scheduler...");
/* 26 */     while (getScheduler() == null);
/* 27 */     System.out.println("Ok.");
/*    */ 
/* 29 */     while (i != 0)
/*    */     {
/* 31 */       for (int j = 0; j < 256; j++) {
/* 32 */         if ((messages[j] != null) && 
/* 33 */           (messages[j].handled)) {
/* 34 */           messages[j] = null;
/*    */         }
/*    */ 
/*    */       }
/*    */ 
/* 40 */       handleMessage();
/*    */     }
/*    */   }
/*    */ }

/* Location:           D:\Марк\!IMPORTANT\staros\archive\version-2.260.zip
 * Qualified Name:     system.staros.cblock2.CoreTask
 * JD-Core Version:    0.6.1
 */